$(function () {
    //banner
    var swiper = new Swiper('.banner.pc .swiper-container', {
        pagination: '.banner.pc .swiper-pagination',
        paginationClickable: true,
        spaceBetween: 0,
        effect:'fade',
        speed:600,
        autoplay: 4000,
        autoplayDisableOnInteraction: false,
        resistanceRatio:0
    });
    //banner
    var swiperp = new Swiper('.banner.phone .swiper-container', {
        pagination: '.banner.phone .swiper-pagination',
        paginationClickable: true,
        spaceBetween: 0,
        effect:'fade',
        speed:600,
        autoplay: 4000,
        autoplayDisableOnInteraction: false,
        resistanceRatio:0
    });
    //首页导航
    var swiper1 = new Swiper('.sy-nav .swiper-container', {
        pagination: '.sy-nav .swiper-pagination',
        paginationClickable: true,
        spaceBetween: 27,
        effect:'left',
        speed:600,
        slidesPerView: 4,
        resistanceRatio:0,
        breakpoints: {
            767: {
                slidesPerView: 2,
                spaceBetween: 10
            },
            1200: {
                spaceBetween: 10
            }
        }
    });
    //新闻
    var swiper2 = new Swiper('.sy-news .swiper-container', {
        pagination: '.sy-news .swiper-pagination',
        slidesPerView: 2,
        slidesPerColumn: 2,
        speed:400,
        paginationClickable: true,
        spaceBetween: 0,
        resistanceRatio:0,
        breakpoints: {
            767: {
                slidesPerView: 1,
                slidesPerColumn: 1,
                spaceBetween: 10
            }
        }
    });

});